import request from '@/utils/request'

import { logServiceApi } from '../config'

const baseApi = '/access-logs'

export function getList(params) {
  return request({
    url: logServiceApi + baseApi + '/page',
    method: 'GET',
    params
  })
}

export function getById(id) {
  return request({
    url: logServiceApi + baseApi + `/${id}`,
    method: 'GET'
  })
}

export function removeById(id) {
  return request({
    url: logServiceApi + baseApi + `/${id}`,
    method: 'DELETE'
  })
}
